const commonRoutes = [
  {
    path: "index",
    meta: {
      route: "shangyebaoxian/index",
      routeSession: "shangyebaoxianPage"
    },
    component: () => import("@/views/shangyebaoxian/index")
  },
  {
    path: "client",
    meta: {
      route: "shangyebaoxian/client/index",
      routeSession: "shangyebaoxianPage"
    },
    component: () => import("@/views/shangyebaoxian/client/index")
  },
  {
    path: "client/addClient",
    meta: {
      route: "shangyebaoxian/client/addClient",
      routeSession: "shangyebaoxianPage"
    },
    component: () => import("@/views/shangyebaoxian/client/addClient")
  },
  {
    path: "client/detail",
    meta: {
      route: "shangyebaoxian/client/detail",
      routeSession: "shangyebaoxianPage"
    },
    component: () => import("@/views/shangyebaoxian/client/detail")
  }
];

export default {
  path: "/shangyebaoxian", // 商业保险
  component: () => import("@/layout/shangyebaoxian"),
  redirect: "/shangyebaoxian/client",
  children: [].concat(commonRoutes)
};
